#import "OmHomeVCCollectionCell.h"
@interface OmHomeVCCollectionCell ()
@property (weak, nonatomic) IBOutlet UIImageView *bigImgView;
@property (weak, nonatomic) IBOutlet UILabel *nameLbl;
@property (weak, nonatomic) IBOutlet UIImageView *sexImgView;
@property (weak, nonatomic) IBOutlet UILabel *ageLbl;
@property (weak, nonatomic) IBOutlet UIImageView *levelImgView;
@property (weak, nonatomic) IBOutlet UILabel *signLbl;
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIView *sexAgeView;
@end
@implementation OmHomeVCCollectionCell
- (void)awakeFromNib {
    [super awakeFromNib];
    self.sexAgeView.layer.borderWidth = 1.0;
    self.bgView.layer.shadowColor = [UIColor colorWithRed:251/255.0 green:116/255.0 blue:161/255.0 alpha:0.15].CGColor;
    self.bgView.layer.shadowOffset =CGSizeMake(4,4);
    self.bgView.layer.shadowRadius =6;
    self.bgView.layer.shadowOpacity = 1;
    self.sexAgeView.layer.cornerRadius = 9.0;
}
- (void)setupContent:(PageDataApiRequestGetIndexOnlineModel *)model {
    if (model.crown) {
        self.levelImgView.image = IMAGE_NAMED(@"OmKingHat");
    }else if (model.blue) {
        self.levelImgView.image = IMAGE_NAMED(@"OmBlueDiamond");
    }else {
        self.levelImgView.image = nil;
    }
    [self.bigImgView sd_setImageWithURL:[NSURL URLWithString:model.avatar]];
    self.bigImgView.contentMode = UIViewContentModeScaleAspectFill;
    self.bigImgView.clipsToBounds = YES;
    UIColor *color = nil;
    if (model.sex == 1) {
        color = HexadecimalColor(@"#00D2FF");
        self.sexImgView.image = IMAGE_NAMED(@"boy");
    }else {
        color = HexadecimalColor(@"#FA5A8C");
        self.sexImgView.image = IMAGE_NAMED(@"girl");
    }
    self.sexAgeView.layer.borderColor = color.CGColor;
    self.ageLbl.textColor = color;
    self.ageLbl.text = NSStringFormat(@"%ld%@",model.age,ASLocalizedString(@"岁"));
    self.nameLbl.text = model.user_nickname;
    self.signLbl.text = model.sign;
}
@end
